//
//  ZPCourseTableViewCell.m
//  ZPIOSEducation
//
//  Created by Encoder on 17/1/10.
//  Copyright © 2017年 mini1. All rights reserved.
//

#import "ZPCourseTableViewCell.h"
@interface ZPCourseTableViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *fullImageView;
@property (weak, nonatomic) IBOutlet UILabel *classCLabel;


@end
@implementation ZPCourseTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _headImageView.layer.borderColor = UIColorFromRGB(0xeeeeee).CGColor;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setClassCount:(NSString *)classCount{
    _classCount = classCount;
    _classCLabel.text = [NSString stringWithFormat:@"开设班级：%@",_classCount];

    
}

-(void)setIsFull:(BOOL)isFull{
    _isFull = isFull;
    _fullImageView.hidden=!_isFull;
    if (_isFull||[_classCount isEqualToString:@"0"]) {
        _teacherName.textColor = UIColorFromRGB(0x999999);
        _schoolName.textColor = UIColorFromRGB(0x999999);
        _courseName.textColor = UIColorFromRGB(0x999999);
        _classCLabel.textColor = UIColorFromRGB(0x999999);
    }else{
        _teacherName.textColor=_schoolName.textColor=_courseName.textColor=_classCLabel.textColor = UIColorFromRGB(0x333333);
    }
}

@end
